# -*- coding: utf-8 -*-


# flask应用程序实例模块
from flask import Flask
from flask_sqlalchemy import SQLAlchemy

# 由于前后端分离 不需要后端渲染 所有资源均可由前端访问
application = Flask(__name__, static_url_path="", static_folder="resources", template_folder="resources")  # 主程序实例
application.config.from_object('config')  # 应用配置
db = SQLAlchemy(application)  # 使用mysql数据库
